Creating a web site

Once you have installed and set up the Web Component Server, the next step is to create a web page that contains report links.

To create a web site

First, you must decide on a location for your new web page, then create a virtual directory for the site that points to the new directory.

  1. Create a directory where you want to store your reports. Copy the reports into the directory.

    This example uses the World Sales Report and Account Statement reports and the directory:

    c:\webroot\newsite

    Note:    For information on the location of your web server's root directory, refer to your web server software documentation. The directory shown here is intended only as an example.

  2. Use your web server administration software to create a virtual directory to point to the physical directory you have just created. You will probably need to give this virtual directory "execute" permission. For this example, we will use the virtual directory:

    mydirectory

  3. Using a simple text editor, such as Notepad, or your favorite HTML editor, create a page with links to the reports in the virtual directory. For this example use the following HTML code:

    <HTML>
    <HEAD>
    <TITLE>Index of Reports</TITLE>
    </HEAD>
    <BODY>
    <H1>Check out these reports!</H1>
    <HR>
    <UL>
        <LI><A HREF="http://localhost/mydirectory/account statement.rpt">
        Account Statement
        </A></LI>
        <LI><A HREF="http://localhost/mydirectory/world sales report.rpt">
        World Sales Report
        </A></LI>
    </UL>
    </BODY>
    </HTML>

  4. Save the file as reportlist.htm in the c:\webroot\newsite directory.
  5. Open your web browser, and enter the following URL:

    http://localhost/newsite/reportlist.htm

  6. Click one of the two links in your new web page to generate and display the report inside your browser.

In this example, you specified two .rpt files using standard URL addresses. The .rpt extension is analyzed by your web server, and is determined to be an extension that should be handled by the Web Component Server application. The URL is handed off, and the Web Component Server determines how to handle the requested .rpt.

When the report is displayed inside your browser, the Web Component Server analyzes the type of browser you are using and delivers the report using a Report Viewer it determines is appropriate. For example, if you are using Internet Explorer 4.0, you will see the report inside the Report Viewer for ActiveX. If you are using Netscape Navigator 4.0, you will see the report inside the Report Viewer for Java.



Seagate Software, Inc.
http://www.seagatesoftware.com
Please send comments to:
techpubs@seagatesoftware.com